<?php

if(file_exists(APP_PATH.'Common/Conf/db.php')){
	$dbconfig = require APP_PATH.'Common/Conf/db.php';
}else{
	$dbconfig = array();
}
$config = array(

	/*模块管理*/
	'MODULE_ALLOW_LIST'    =>    array('Home','Admin','TPH'),
	'DEFAULT_MODULE'       =>    'Home',
	'SHOW_PAGE_TRACE'      => 'true',
	
	/*模板设置*/
	'TMPL_PARSE_STRING'  =>array(
	    '__CSS__'     => '/javajy/Public/Css',
		'__JS__'     => '/javajy/Public/Js',
		'__PLUGIN__' => '/javajy/Public/Plugin',
		'__IMAGE__' => '/javajy/Public/Image',
	),
	
	/*视图配置*/
	'TMPL_FILE_DEPR'     => '/',
    'TMPL_L_DELIM'       => '{'.':',
    'TMPL_R_DELIM'       => '}',
	
	/*是否检查文件的大小写*/
	'APP_FILE_CASE'         =>  false,
	'URL_MODEL' => 1,

	'URL_ROUTER_ON' => true,
	'URL_ROUTE_RULES'=>array(
	    'admin' => 'Admin/Login',
	    'news/:id'       => 'News/read',
	    'news/read/:id'  => '/news/:1',
	),

);
return array_merge($config,$dbconfig);